import jkoa.core.App;
public class Main {
    public static void main(String[] args) {
        App app = new App();

        app.use((ctx, next) -> {
            System.out.println("First middleware start");
            next.execute(ctx);
            System.out.println("First middleware end");
        });

 
        
        
        
//        app.get("/", (ctx, next) -> {
//            res.setBody("Hello, World!");
//            next.handle(ctx);
//        });
        
        
//        app.use(new LoggingMiddleware());
//        app.use(new ErrorHandlingMiddleware());

        
        // 添加自定义中间件
        app.use(new YourCustomMiddleware());
        // 启动框架来监听请求
        
        
     
        
//        app.listen();
    }
}